package xml;
import java.io.*;

public class DocumentXML {
	public TagXML radacina=null;
	public static boolean hasInstance=false;
	public File f =null;
	public DocumentXML instance =null;
	public DocumentXML(TagXML rad, String filename) {
		if(hasInstance==false)
		{
			this.f=new File(filename);
			this.radacina = rad;
			hasInstance=true;
		}
		
	
	}
	public void setXMLFile(String filename)
	{
		
		this.f=new File(filename);
	}
	File getXMLFile(){
		return this.f;
	}
	public TagXML getRadacina() {
		return radacina;
	}
	public void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}
	public DocumentXML getInstance() {
		return instance;
	}
	public void setInstance(DocumentXML instance) {
		this.instance = instance;
	}
	
	public void acceptVisitor(XMLVisitor v)
	{
		
	}

	

}
